
<div id="actionbar">
    <a href="javascript:;" url="{:url('user/selectWorkerStore',['worker_id' => $worker_id])}" class="button button-blue select"> <i class="iconfont icon-add_icon"></i>关联所属好店</a>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w40 fn-tac">#</th>
            <th class="w60 fn-tac"></th>
            <th>好店名称</th>
            <th class="w140">联系电话</th>
            <th class="w140">更新时间</th>
            <th class="w90 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $store as $vo}
        <tr>
            <td class="fn-tac">{$vo.id}</td>
            <td class="fn-tac"><img src="{$vo.img}?x-oss-process=style/80" class="w40" /></td>
            <td>
                <i class="iconfont icon-home_icon"></i> <a href="{:url('store/review',['id'=>$vo.id])}">{$vo.name}</a>
                {if $vo.is_top}<span class="badge bg-green m3">置顶</span>{else}<span class="badge m3">置顶</span>{/if}
                {if $vo.is_default}<span class="badge bg-blue m3">默认</span>{else}<span class="badge m3">默认</span>{/if}
                {if $vo.is_lock}<span class="badge bg-red m3">锁定</span>{else}<span class="badge m3">锁定</span>{/if}<br />
                <i class="iconfont icon-address_icon"></i> <span class="gray">{$vo.address}</span>
            </td>
            <td>{$vo.telphone}</td>
            <td>{$vo.create_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac"><a class="button isDel" url="{:url('user/workerStoreDelete',['worker_id' => $worker_id,'store_id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $(".select").win({reload:1});
})
</script>